var recycleInitState = {
    recycleList: [],
    activeFirstNav: '',
    activeSecondNav: '',
    showRecoke: false,
    showDelete: false,
    activeRecyle:{
        id: '',
        filename: ''
    }
}

export default function(state = recycleInitState, action){
    switch(action.type){
        case 'GET_RECYCLE':
            return {...state, recycleList: action.recycleList}

        case 'ACTIVE_FIRST_NAV':
            return {...state, activeFirstNav: action.activeFirstNav}

        case 'ACTIVE_SECOND_NAE':    
            return {...state, activeSecondNav: action.activeSecondNav}

        case 'SHOE_RECOKE':
            return {...state, showRecoke: action.showRecoke}

        case 'SHOW_DELETE':   
            return {...state, showDelete: action.showDelete}

        case 'ACTIVE_RECYCLE':
            return {...state, activeRecyle: action.activeRecyle}

        default:
            return state;    
    }
}